package com.kaili.basic.service;

import com.kaili.basic.pojo.entity.BaseDict;

import java.util.List;

/**
 * <p>
 *  数据字典服务类
 * </p>
 *
 * @author nigang
 * @since 2018-05-04
 */
public interface IBaseDictService {
    Integer getMaxDictId();

    Integer getMaxDictTypeOrder();

    Integer getMaxDictOrder(Integer dictId);

    List<BaseDict> getDictByParentName(String dictName);

    List<BaseDict> getAllDictType();

    BaseDict getDictById(Integer dictId);

    List<BaseDict> getDictByCode(BaseDict dict);

    List<BaseDict> getDictByName(BaseDict dict);

    List<BaseDict> getDictByIdCode(BaseDict dict);

    List<BaseDict> getDictByIdName(BaseDict dict);

    List<BaseDict> getDictByParentId(Integer parentId);

    List<BaseDict> getDictByDictId(Integer parentId);

    List<BaseDict> getDictByDictId2(Integer parentId);

    int updateDict(BaseDict dict);

    int addDict(BaseDict dict);

    int deleteDictById(Integer dictId);

    int deleteDictByParentId(Integer parentId);

    BaseDict selectByDictName(String dictName);
}
